package com.aidex.biz.smy.controller;

import com.aidex.biz.smy.dto.BaseDTO;
import com.aidex.biz.smy.service.HitService;
import com.aidex.biz.smy.vo.BaseVO;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xyb
 * @Description belong模式接口
 * @since 14:36 2022/11/10
 */
@RestController
@Validated
@RequiredArgsConstructor
public class BelongController {

    private final HitService hitService;

    /**
     * @Description belong数据提交
     * @author xyb
     * @since 14:40 2022/11/10
     */
    @PostMapping("/belongInfoSubmit")
    public BaseVO hitUser(@RequestBody BaseDTO param) {
        BaseVO baseVO = hitService.commitBelong(param);
        return baseVO;
    }




}
